﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Public;
using DAL;

namespace BLL
{
    public class NguoiDungQHBLL
    {
        public static bool KiemTraDangNhap(string TenDangNhap, string MatKhau, ref NguoiDungQHPublic user_login, ref string message)
        {
            return NguoiDungQHDAL.KiemTraDangNhap(TenDangNhap, MatKhau, ref user_login, ref message);
        }
        public static List<NguoiDungQHPublic> LoadToanBoNguoiDung()
        {
            return NguoiDungQHDAL.LoadToanBoNguoiDung();
        }
        public static void InsertNguoiDung(NguoiDungQHPublic nd)
        {
            NguoiDungQHDAL.InsertNguoiDung(nd);
        }
        public static void InsertNguoiDungNK(NguoiDungQHPublic nd)
        {
            NguoiDungQHDAL.InsertNguoiDungNK(nd);
        }
        public static List<NguoiDungQHPublic> LoadNguoiDungHienTai()
        {
            return NguoiDungQHDAL.LoadNguoiDungHienTai();
        }
        public static NguoiDungQHPublic LoadNguoiDungByMaND(int MaND)
        {
            return NguoiDungQHDAL.LoadNguoiDungByMaND(MaND);
        }
        public static void UpdateTinhTrang(int MaND, bool TinhTrang)
        {
            NguoiDungQHDAL.UpdateTinhTrang(MaND, TinhTrang);
        }
        public static List<NguoiDungQHPublic> LoadNguoiCap()
        {
            return NguoiDungQHDAL.LoadNguoiCap();
        }
        public static List<NguoiDungQHPublic> LoadCanBoHoTich()
        {
            return NguoiDungQHDAL.LoadCanBoHoTich();
        }
        public static List<NguoiDungQHPublic> LoadChuTich()
        {
            return NguoiDungQHDAL.LoadChuTich();
        }
        public static int LoadMaND()
        {
            return NguoiDungQHDAL.LoadMaND();
        }
        public static void UpdateNguoiDung(int MaND, string TenDN, string HoTen, string MatKhau, DateTime NgaySinh, DateTime BD, DateTime KT, bool TinhTrang, byte ChucVu)
        {
            NguoiDungQHDAL.UpdateNguoiDung(MaND, TenDN, HoTen, MatKhau, NgaySinh, BD, KT, TinhTrang, ChucVu);
        }
        public static void DeleteNguoiDung(int MaND)
        {
            NguoiDungQHDAL.DeleteNguoiDung(MaND);
        }
    }
}
